<?php

	class OpenFileCommand implements ICommand
	{
		public function execute($event)
		{
			$filepath = $event->data["filepath"];
				
			$content = file_get_contents(ROOT.$filepath);
			
			//$content = mb_convert_encoding($content, 'UTF-8', mb_detect_encoding($content, 'UTF-8, ISO-8859-1', true));
			
			$content = str_replace('\r','',$content);
				
		  	return $content;
		}
	}